feat: send identity user_id with subscription checks - #62
Merged
Conversation
Comment on lines
+42
to
+44
| const fenceIndexes = []; | ||
| for (let index = 0; index < lines.length; index++) { | ||
| if (FENCE_LINE_PATTERN.test(lines[index])) fenceIndexes.push(index); |
Contributor
There was a problem hiding this comment.
Fence parsing corrupts valid Dart
When valid Dart contains line-leading triple backticks inside a multiline string or block comment, sanitizeGeneratedDart treats those lines as Markdown fence boundaries and discards the surrounding source, causing the single-artifact deployment to fail validation or push code that differs from the reviewed artifact.
Knowledge Base Used: FlutterFlow artifact pipeline
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/flutterFlowCodeSanitizer.js
Line: 42-44
Comment:
**Fence parsing corrupts valid Dart**
When valid Dart contains line-leading triple backticks inside a multiline string or block comment, `sanitizeGeneratedDart` treats those lines as Markdown fence boundaries and discards the surrounding source, causing the single-artifact deployment to fail validation or push code that differs from the reviewed artifact.
**Knowledge Base Used:** [FlutterFlow artifact pipeline](https://app.greptile.com/connect-i-o/-/custom-context/knowledge-base/sgardoll/customcodeconnectforflutterflow/-/docs/flutterflow-artifact-pipeline.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Pairs with buildship feat/identities-revenue-attribution: the verified session JWT plus this user_id let stripe-get-subscription stamp billing state (email/tier/revenue) onto the caller's identities document.
sgardoll
force-pushed
the
feat/send-user-id-with-subscription-check
branch
from
August 23, 2026 00:54
cb0b5ea to
1c2c9cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Pairs with the buildship revenue-attribution change.
fetchSubscriptionsent only the session JWT + email, so the server had no way to link a signed-in visitor to their anonymousidentitiesdocument — the missing half of why the identities collection could never record revenue.Fix
One line: the
/stripe/get-subscriptionrequest body now also carriesuser_id: identityState.userId. The server derives everything sensitive (email, tier) from the verified JWT; this id only selects WHICH identity document gets stamped with billing state.Verification
npm test)Greptile Summary
Adds the resolved identity user ID to authenticated subscription-check requests so the service can associate billing state with the corresponding identity document.
/stripe/get-subscriptionJSON body withidentityState.userId.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (2): Last reviewed commit: "feat: send identity user_id with subscri..." | Re-trigger Greptile